<!--
 * @Descripttion: 
 * @version: 
 * @Author: 高月飞
 * @Date: 2023-11-23 21:30:13
 * @LastEditors: 高月飞
 * @LastEditTime: 2023-11-24 19:12:37
-->
<template>
    <el-table :data="tableData" style="width: 100%" :show-header="false">
        <el-table-column label="notice">
            <template #default="scope">
                <router-link :to="{ path: '/message', params: { id: scope.row.id } }">
                    {{ scope.row.notice }}
                </router-link>
            </template>
        </el-table-column>
        <el-table-column label="name" width="120">
            <template #default="scope"> 发起人：
                <router-link :to="{ path: '/message', params: { id: scope.row.id } }">
                    {{ scope.row.name }}
                </router-link>
            </template>
        </el-table-column>
        <el-table-column prop="noticedata" label="noticedata" width="120" />
    </el-table>
</template>
  
<script setup lang="ts">
import { defineProps } from 'vue';

interface IProps {
    tableData: Array<{ id: string; notice: string; name: string; noticedata: string }>;
}

const props = defineProps<IProps>();
</script>
  
<style lang="scss" scoped></style>
  